using Autofac;

namespace 人员管理
{
    internal static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // To customize application configuration such as set high DPI settings or default font,
            // see https://aka.ms/applicationconfiguration.
            //ApplicationConfiguration.Initialize();
            //Application.Run(new Form1());

            //windows服务初始化工作
            AutofacBuilder.init();
            using (var scope = AutofacBuilder._container.BeginLifetimeScope())
            {
                ApplicationConfiguration.Initialize();
                Form form = scope.Resolve<Form1>();
                Application.Run(form);
            }

        }
    }
}